package javc;

import java.util.Scanner;

public class lianxi1 {
    //键盘录入两个整数,其中一个是6或者6的倍数是true,其他f
   //1输入两个数
   //2判断
   // a = 6 b = 6 (a+b)%6==0
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int one = sc.nextInt();
        System.out.println("请输入一个整数");
        int two = sc.nextInt();
        boolean result = one == 6 || two == 6 || (one + two) % 6 == 0;
        System.out.println(result);
    }
}
